/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Frédéric
 */
public class ScriptCatalogue {
    
    public static void main(String[] args) {
        PersistenceMgr p = new PersistenceMgr("vehicules.txt");
        Vehicule[] vehicules = p.donneLesVehicules();
        
        /*for (int i=0; i < vehicules.length; i++) {
            System.out.println(vehicules[i].afficheToi());
        }*/
        
        for (Vehicule v : vehicules) {
            System.out.println(v.afficheToi());
        }
        
    }
    
}
